import { domainService } from '~/config/server';
import { NetService } from '~/utils/net.service';
import { Inject, Debounce } from '~/core/decorator';
export class CasePauseActiveService {
  @Inject(NetService)
  private netService: NetService;

  /**
   * 停催申请
   */
  @Debounce()
  public casePauseActive(data) {
    return this.netService.send({
      server: domainService.casePauseActiveController.casePauseActive,
      data,
      loading: true,
    });
  }

  /**
   * 审批停催案件
   */
  @Debounce()
  public getTagApplyById(data) {
    return this.netService.send({
      server: domainService.casePauseActiveController.getCasePauseActiveInfo,
      data,
      loading: true,
    });
  }
  /**
   * 查询案件状态
   */
  @Debounce()
  public checkCasePauseActive(data) {
    return this.netService.send({
      server: domainService.casePauseActiveController.checkCasePauseActive,
      data
    });
  }
}
